package cn.powerone.scm.service;

import java.util.Date;
import java.util.List;

import cn.powerone.scm.domain.ScmCustomerOrders;
import cn.powerone.scm.domain.ScmSupplierOrders;

/**
 * 供应商订单Service接口
 * 
 * @author PowerOne
 * @date 2025-07-04
 */
public interface IScmSupplierOrdersService 
{
    /**
     * 查询供应商订单
     * 
     * @param id 供应商订单主键
     * @return 供应商订单
     */
    public ScmSupplierOrders selectScmSupplierOrdersById(Long id);

    /**
     * 查询供应商订单列表
     * 
     * @param scmSupplierOrders 供应商订单
     * @return 供应商订单集合
     */
    public List<ScmSupplierOrders> selectScmSupplierOrdersList(ScmSupplierOrders scmSupplierOrders);

    /**
     * 新增供应商订单
     * 
     * @param scmSupplierOrders 供应商订单
     * @return 结果
     */
    public int insertScmSupplierOrders(ScmSupplierOrders scmSupplierOrders);

    /**
     * 修改供应商订单
     * 
     * @param scmSupplierOrders 供应商订单
     * @return 结果
     */
    public int updateScmSupplierOrders(ScmSupplierOrders scmSupplierOrders);

    /**
     * 批量删除供应商订单
     * 
     * @param ids 需要删除的供应商订单主键集合
     * @return 结果
     */
    public int deleteScmSupplierOrdersByIds(Long[] ids);

    /**
     * 删除供应商订单信息
     * 
     * @param id 供应商订单主键
     * @return 结果
     */
    public int deleteScmSupplierOrdersById(Long id);

    /**
     * 创建供应商订单
     *
     * @param scmCustomerOrders 客户订单
     * @return 结果
     */
    public int createScmSupplierOrders(ScmCustomerOrders scmCustomerOrders);

    public int selectSupplierOrderCountByMonth(Date yesterday);

    public int selectSupplierOrderCountByYear(Date yesterday);

    public int selectSupplierOrderCountAll();
}
